import request from "@/manager/base/RequestManager";

/**
 * FileName: SystemConfigServcie.java
 * Author:   徐寿春
 * Date:     2023/5/23 11:21
 * <p>
 * 名称: 系统公共配置服务
 */
export function getSystemCommonConfig() {
    return request.get('system/action/getSystemCommonConfig')
}



/**
 * 获取地址枚举
 * @param params
 */
export function getSystemAddressEnumTree() {
    return request.get('system/action/getSystemAddressEnumTree')
}


/**
 *   售后状态枚举
 * @author 徐寿春
 * 2023/4/4 17:59
 */
export function getAfterSaleOrderEnum() {
    return request.post('system/action/getAfterSaleOrderEnum')
}


/**
 * 获取售后系统枚举配置
 *
 * @author 徐寿春
 * 2023/4/11 10:47
 */
export function getAfterSaleConfigAllGroupByMap() {
    return request.post('system/action/getAfterSaleConfigAllGroupByMap')
}


/**
 *
 * 获取售后协同配置列表
 *
 * @author 徐寿春
 * 2023/4/11 11:02
 */
export function getAfterSaleConfigByParam(params?: any) {
    return request.post('system/action/getAfterSaleConfigByParam', params)
}


/**
 *  获取当前枚举详情
 *
 * @author 徐寿春
 * 2023/4/11 09:35
 */
export function getAfterSaleOrderConfigDetail(params?: any) {
    return request.post('system/action/getAfterSaleOrderConfigDetail', params)
}


/**
 * 新增修改售后枚举
 *
 * @author 徐寿春
 * 2023/4/11 10:47
 */
export function optAfterSaleConfig(params?: any) {
    return request.post('system/action/optAfterSaleConfig', params)
}


/**
 * 删除售后后台配置
 *
 * @author 徐寿春
 * 2023/4/11 11:03
 */
export function delAfterSaleConfig(params?: any) {
    return request.post('system/action/delAfterSaleConfig', params)
}


/**
 * 发送消息
 *
 * @author 徐寿春
 * 2023/4/11 11:03
 */
export function producers(params?: any) {
    return request.post('system/action//producers', params)
}


// ------------------------------------------------------------------------------------------------------------ 存储配置 ------------------------------------------------------------------------------------------------------------

/**
 * 存储列表
 *
 * @return List<Map < String, Object>>
 * @author 徐寿春
 */
export function storageList(params?: any) {
    return request.post('system/action/storageList', params)
}


/**
 *
 * 存储详情
 *
 * @author 徐寿春
 * 2023/7/18 17:37
 */
export function storageDetail(params?: any) {
    return request.post('system/action/storageDetail', params)
}


/**
 * 存储编辑
 *
 * @param params 参数
 * @author 徐寿春
 */
export function storageEdit(params?: any) {
    return request.post('system/action/storageEdit', params)
}


/**
 * 存储切换
 *
 * @param alias  引擎别名
 * @param status 状态
 * @author 徐寿春
 */

export function storageChange(params?: any) {
    return request.post('system/action/storageChange', params)
}
















